cmake_minimum_required(VERSION 3.16)

project(c_udp_server LANGUAGES C)

add_executable(c_udp_server main.c)

# link_directories("D:/Environment/mingw64/x86_64-w64-mingw32/lib")

target_link_libraries(c_udp_server wsock32)

include(GNUInstallDirs)
install(TARGETS c_udp_server
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
